<?php
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;
use Traits\HasUuid;

class ArticleModel extends Model
{
    use HasFactory, HasUuid, SoftDeletes;

    protected $table = 'articles';

    protected $fillable = [];

    protected $hidden = ["deleted_at"];

    public function category(): BelongsTo
    {
        return $this->belongsTo(CategoryModel::class,"category_id","id");
    }
}
